package com.smalluz.ad.modules.oe.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.smalluz.ad.modules.common.util.json.JacksonUtils;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RefreshTokenRequest {

    @JsonProperty("app_id")
    private String appid;

    @JsonProperty("secret")
    private String secret;

    @JsonProperty("grant_type")
    private String grantType;
    
    @JsonProperty("refresh_token")
    private String refreshToken;

    private String toJson() {
        return JacksonUtils.bean2Jsn(this);
    }

    @Override
    public String toString() {
        return this.toJson();
    }
}
